#ifndef CHATBUBBLEANDHEAD_H
#define CHATBUBBLEANDHEAD_H
#include <QWidget>
#include "chat.h"
#include "chatbubble.h"

class ChatBubbleAndHead : public QWidget
{
    Q_OBJECT
    ChatBubble* content;

public:
    explicit ChatBubbleAndHead(bool isSender,QPixmap senderhead, QPixmap receivehead, ChatWidget* prt, QWidget *parent = nullptr);
    void set_txt(QString send_txt);
    void set_file(const QString& fileName,const QByteArray& info,const int& sz);
    void set_picture(QPixmap picture);

signals:
    void receiveFile_CB2CBH();
};

#endif // CHATBUBBLEANDHEAD_H;
